# -*- coding: utf-8 -*-
"""
@Time ： 2020/10/9 14:54
@Auth ： Mr. JJ_Cloud
@Company ：testingedu.com.cn
@Function ：转义符 \n,\\,\t;%r,%s
"""

import datetime

dt=datetime.datetime.today()
print('%s' % dt) #%s 会将所有转成字符串,等于用str()方法处理对象
print('%r' % dt) #%r 打印时能够重现它所代表的对象 ,等于用rper()方法处理对象


tabby_cat = "\tI'm tabbed in."
persian_cat = "I'm split\non a line."
backslash_cat = "I'm \\ a \\ cat."

fat_cat = """
I'll do a list:
\t* Cat food
\t* Fishies
\t* Catnip\n\t* Grass
"""

print(tabby_cat)
print(persian_cat)
print(backslash_cat)
print(fat_cat)
